package com.iran.chainOfResponsibility.example;

public class CommonManager extends Manager {
    public CommonManager(String name) {
        super(name);
    }

    @Override
    public void requestApplications(Request request) {
        if (1 == request.getType() && request.getCount()<4){
            System.out.println("经理处理三天内的请假请求");
        }else if(5==request.getType() && request.getCount()<1000){
            System.out.println("经理处理1000以内的报销");
        }else {
            superior.requestApplications(request);
        }
    }
}
